
export default class HttpHelper {

    /**
     * 
     * @param object 
     */
    static getHttpContent(object):string{
        var temp = "";
        for (const key in object) {
            if (object.hasOwnProperty(key)) {
                const element = object[key];
                if(temp === "" ){
                    // temp = "?";
                }else{
                    temp = temp + "&";
                }
               
                temp = temp+key+"="+element;
            }
        }
        // cc.log(" temp ",temp);
        return temp; 
    }

}
